﻿<ul class="nav pull-right">
    @if (Request.IsAuthenticated)
    {
        <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">
            @User.Identity.Name.ToUpper()
            <b class="caret"></b></a>
            <ul class="dropdown-menu">
                <li>
                    @Html.ActionLink("Change Password", "ChangePassword", "Account")
                </li>
                <li>
                    @Html.ActionLink("Log Off", "LogOff", "Account")
                </li>
            </ul>
        </li>
    }
    else
    {
        <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Menu
            <b class="caret"></b></a>
            <ul class="dropdown-menu">
                <li>
                    @Html.ActionLink("Log In", "LogOn", "Account")
                </li>
                <li>
                    @Html.ActionLink("Register", "Register", "Account")
                </li>
            </ul>
        </li>
    }
</ul>
